#@layout()
#define main()

<script type="text/javascript">
	var isExport = false;

	//改变提交标志位
	var changeBooleanExport = function(submitObj){
		//console.log($(submitObj).attr("value"));
		var submitType = $(submitObj).attr("value");
		if(submitType == '导出'){
			isExport = true;
		}else{
			isExport = false;
		}
	}



	//根据 提交的按钮 改变 提交 URL
	var changeUrl = function(formObj){
		console.log($(formObj).attr("action"));
		var ctxPath = $(formObj).attr("action");
		if(isExport){
			$(formObj).attr("action",ctxPath+"/task/download")
		}else{
			$(formObj).attr("action",ctxPath+"/task/index")
		}

		return true;
	}
	//显示一条记录的详细情况
	var openDetail = function(id){
		$( "#dialog_"+id ).dialog();
	}

	$(function() {
		//$( "#dialog" ).dialog();
	});
</script>
<span class="table_box" style="width:400px">
	<table class="list">
		<thead>象限2</thead>
		<tbody>
			<tr>
				<th>id</th>
				<th>名称</th>
				<th>项目</th>
				<th>责任人</th>
				<th>权重</th>
				<th>分类</th>
				<th>计划完成时间</th>
				<th width="12%">操作</th>
			</tr>

			#for(x : page_2.getList())
			<tr>
				<td style="text-align:left;">#(x.id)</td>
				<td style="text-align:left;" title="#(x.title)">#(x.title)</td>
				<td style="text-align:left;" title="#(x.projectName)">#(x.projectName)</td>
				<td style="text-align:left;" title="#(x.userName)">#(x.userName)</td>
				<td style="text-align:left;" title="#(x.weight)">#(x.weight)</td>
				<td style="text-align:left;" title="#(x.category)">#(x.category)</td>
				<td style="text-align:left;">#date(x.reportDate,"yyyy年MM月dd日")</td>
				<td style="text-align:left;">
					#if((session.uid.id) == (x.userId))
					&nbsp;&nbsp;<a href="#(ctx??)/task/edit/#(x.id)">修改</a>
					#end
					#if(x.userId == null)
						<a href="#(ctx??)/task/getTask/#(x.id)">领取</a>
					#end
				</td>
			</tr>
			#end
		</tbody>
	</table>
</span>
<span class="table_box" style="width:400px;float:right">
	<table class="list">
		<thead>象限1</thead>
		<tbody>
			<tr>
				<th>id</th>
				<th>名称</th>
				<th>项目</th>
				<th>责任人</th>
				<th>权重</th>
				<th>分类</th>
				<th>计划完成时间</th>
				<th width="12%">操作</th>
			</tr>

			#for(x : page_1.getList())
			<tr>
				<td style="text-align:left;">#(x.id)</td>
				<td style="text-align:left;" title="#(x.title)">#(x.title)</td>
				<td style="text-align:left;" title="#(x.projectName)">#(x.projectName)</td>
				<td style="text-align:left;" title="#(x.userName)">#(x.userName)</td>
				<td style="text-align:left;" title="#(x.weight)">#(x.weight)</td>
				<td style="text-align:left;" title="#(x.category)">#(x.category)</td>
				<td style="text-align:left;">#date(x.reportDate,"yyyy年MM月dd日")</td>
				<td style="text-align:left;">
					#if((session.uid.id) == (x.userId))
					&nbsp;&nbsp;<a href="#(ctx??)/task/edit/#(x.id)">修改</a>
					#end
					#if(x.userId == null)
						<a href="#(ctx??)/task/getTask/#(x.id)">领取</a>
					#end
				</td>
			</tr>
			#end
		</tbody>
	</table>
</span>

<span class="table_box" style="width:400px;clear: both;">
	<table class="list">
		<thead>象限3</thead>
		<tbody>
			<tr>
				<th>id</th>
				<th>名称</th>
				<th>项目</th>
				<th>责任人</th>
				<th>权重</th>
				<th>分类</th>
				<th>计划完成时间</th>
				<th width="12%">操作</th>
			</tr>

			#for(x : page_3.getList())
			<tr>
				<td style="text-align:left;">#(x.id)</td>
				<td style="text-align:left;" title="#(x.title)">#(x.title)</td>
				<td style="text-align:left;" title="#(x.projectName)">#(x.projectName)</td>
				<td style="text-align:left;" title="#(x.userName)">#(x.userName)</td>
				<td style="text-align:left;" title="#(x.weight)">#(x.weight)</td>
				<td style="text-align:left;" title="#(x.category)">#(x.category)</td>
				<td style="text-align:left;">#date(x.reportDate,"yyyy年MM月dd日")</td>
				<td style="text-align:left;">
					#if((session.uid.id) == (x.userId))
					&nbsp;&nbsp;<a href="#(ctx??)/task/edit/#(x.id)">修改</a>
					#end
					#if(x.userId == null)
						<a href="#(ctx??)/task/getTask/#(x.id)">领取</a>
					#end
				</td>
			</tr>
			#end
		</tbody>
	</table>
</span>
<span class="table_box" style="width:400px;float:right">
	<table class="list">
		<thead>象限4</thead>
		<tbody>
			<tr>
				<th>id</th>
				<th>名称</th>
				<th>项目</th>
				<th>责任人</th>
				<th>权重</th>
				<th>分类</th>
				<th>完成时间</th>
				<th width="12%">操作</th>
			</tr>
			#if(page_4.getList().size() > 0)
				#for(x : page_4.getList())
				<tr>
					<td style="text-align:left;">#(x.id)</td>
					<td style="text-align:left;" title="#(x.title)">#(x.title)</td>
					<td style="text-align:left;" title="#(x.projectName)">#(x.projectName)</td>
					<td style="text-align:left;" title="#(x.userName)">#(x.userName)</td>
					<td style="text-align:left;" title="#(x.weight)">#(x.weight)</td>
					<td style="text-align:left;" title="#(x.category)">#(x.category)</td>
					<td style="text-align:left;">#date(x.reportDate,"yyyy年MM月dd日")</td>
					<td style="text-align:left;">
						#if((session.uid.id) == (x.userId))
						&nbsp;&nbsp;<a href="#(ctx??)/task/edit/#(x.id)">修改</a>
						#end
						#if(x.userId == null)
							<a href="#(ctx??)/task/getTask/#(x.id)">领取</a>
						#end

					</td>
				</tr>
				#end
			#else
			#end

		</tbody>
	</table>
</span>
#end